[INFO] cloning repository https://github.com/erikfastermann/baby-chess-engine
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/erikfastermann/baby-chess-engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ferikfastermann%2Fbaby-chess-engine", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ferikfastermann%2Fbaby-chess-engine'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 8354ec5169696eeee963c69df6a2ff654f4502b7
[INFO] fixing erikfastermann/baby-chess-engine against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=end=2015,2024 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ferikfastermann%2Fbaby-chess-engine" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/erikfastermann/baby-chess-engine
[INFO] finished tweaking git repo https://github.com/erikfastermann/baby-chess-engine
[INFO] tweaked toml for git repo https://github.com/erikfastermann/baby-chess-engine written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/erikfastermann/baby-chess-engine on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/erikfastermann/baby-chess-engine already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 53e91f74348b60716650bcf7c91adec92e6af915801e10d7e015b00bf944bbe5
[INFO] running `Command { std: "docker" "start" "53e91f74348b60716650bcf7c91adec92e6af915801e10d7e015b00bf944bbe5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "53e91f74348b60716650bcf7c91adec92e6af915801e10d7e015b00bf944bbe5" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "53e91f74348b60716650bcf7c91adec92e6af915801e10d7e015b00bf944bbe5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "53e91f74348b60716650bcf7c91adec92e6af915801e10d7e015b00bf944bbe5" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=end=2015,2024", kill_on_drop: false }`
[INFO] [stderr] crater-edition-check: migrating to next edition
[INFO] [stderr]    Migrating Cargo.toml from 2021 edition to 2024
[INFO] [stderr]     Checking either v1.9.0
[INFO] [stderr]     Checking itertools v0.12.0
[INFO] [stderr]     Checking baby_chess_engine v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]    Migrating src/main.rs from 2021 edition to 2024
[INFO] [stderr]        Fixed src/eval.rs (1 fix)
[INFO] [stderr]        Fixed src/init.rs (1 fix)
[INFO] [stderr]        Fixed src/moves.rs (3 fixes)
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/eval.rs:211:14
[INFO] [stdout]     |
[INFO] [stdout] 211 |     unsafe { &BLACK_PIECE_SQUARE_TABLES }
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 211 |     unsafe { &raw const BLACK_PIECE_SQUARE_TABLES }
[INFO] [stdout]     |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/eval.rs:215:33
[INFO] [stdout]     |
[INFO] [stdout] 215 |     reverse_piece_square_tables(&mut BLACK_PIECE_SQUARE_TABLES)
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 215 |     reverse_piece_square_tables(&raw mut BLACK_PIECE_SQUARE_TABLES)
[INFO] [stdout]     |                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/moves.rs:62:16
[INFO] [stdout]    |
[INFO] [stdout] 62 |     king_moves(&mut KING_MOVES);
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 62 |     king_moves(&raw mut KING_MOVES);
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/moves.rs:78:18
[INFO] [stdout]    |
[INFO] [stdout] 78 |     knight_moves(&mut KNIGHT_MOVES);
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 78 |     knight_moves(&raw mut KNIGHT_MOVES);
[INFO] [stdout]    |                   +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/eval.rs:211:14
[INFO] [stdout]     |
[INFO] [stdout] 211 |     unsafe { &BLACK_PIECE_SQUARE_TABLES }
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 211 |     unsafe { &raw const BLACK_PIECE_SQUARE_TABLES }
[INFO] [stdout]     |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/eval.rs:215:33
[INFO] [stdout]     |
[INFO] [stdout] 215 |     reverse_piece_square_tables(&mut BLACK_PIECE_SQUARE_TABLES)
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 215 |     reverse_piece_square_tables(&raw mut BLACK_PIECE_SQUARE_TABLES)
[INFO] [stdout]     |                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/moves.rs:62:16
[INFO] [stdout]    |
[INFO] [stdout] 62 |     king_moves(&mut KING_MOVES);
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 62 |     king_moves(&raw mut KING_MOVES);
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/moves.rs:78:18
[INFO] [stdout]    |
[INFO] [stdout] 78 |     knight_moves(&mut KNIGHT_MOVES);
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 78 |     knight_moves(&raw mut KNIGHT_MOVES);
[INFO] [stdout]    |                   +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.77s
[INFO] [stderr] crater-edition-check: baby_chess_engine v0.1.0 (/opt/rustwide/workdir) updating edition from 2021 to 2024
[INFO] [stderr]     Checking baby_chess_engine v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: fields `piece`, `from`, `to`, `we_can_castle`, and `en_passant_index` are never read
[INFO] [stdout]    --> src/board.rs:626:9
[INFO] [stdout]     |
[INFO] [stdout] 625 |     NonCapture {
[INFO] [stdout]     |     ---------- fields in this variant
[INFO] [stdout] 626 |         piece: Piece,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout] 627 |         from: u8,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 628 |         to: u8,
[INFO] [stdout]     |         ^^
[INFO] [stdout] 629 |         we_can_castle: CanCastle,
[INFO] [stdout]     |         ^^^^^^^^^^^^^
[INFO] [stdout] 630 |         en_passant_index: Option<u8>,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]    --> src/board.rs:633:9
[INFO] [stdout]     |
[INFO] [stdout] 632 |     Capture {
[INFO] [stdout]     |     ------- fields in this variant
[INFO] [stdout] 633 |         piece: Piece,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout] 634 |         from: u8,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 635 |         to: u8,
[INFO] [stdout]     |         ^^
[INFO] [stdout] 636 |         captured_piece: Piece,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^
[INFO] [stdout] 637 |         we_can_castle: CanCastle,
[INFO] [stdout]     |         ^^^^^^^^^^^^^
[INFO] [stdout] 638 |         enemy_can_castle: CanCastle,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 639 |         en_passant_index: Option<u8>,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `from`, `to`, and `en_passant_index` are never read
[INFO] [stdout]    --> src/board.rs:641:17
[INFO] [stdout]     |
[INFO] [stdout] 641 |     EnPassant { from: u8, to: u8, en_passant_index: Option<u8>, },
[INFO] [stdout]     |     ---------   ^^^^      ^^      ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     fields in this variant
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `from`, `to`, `we_can_castle`, and `en_passant_index` are never read
[INFO] [stdout]    --> src/board.rs:642:14
[INFO] [stdout]     |
[INFO] [stdout] 642 |     Castle { from: u8, to: u8, we_can_castle: CanCastle, en_passant_index: Option<u8>, },
[INFO] [stdout]     |     ------   ^^^^      ^^      ^^^^^^^^^^^^^             ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     fields in this variant
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `from`, `to`, `promotion_piece`, and `en_passant_index` are never read
[INFO] [stdout]    --> src/board.rs:643:17
[INFO] [stdout]     |
[INFO] [stdout] 643 |     Promotion { from: u8, to: u8, promotion_piece: Piece, en_passant_index: Option<u8>, },
[INFO] [stdout]     |     ---------   ^^^^      ^^      ^^^^^^^^^^^^^^^         ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     fields in this variant
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `from`, `to`, `promotion_piece`, `captured_piece`, `enemy_can_castle`, and `en_passant_index` are never read
[INFO] [stdout]    --> src/board.rs:645:9
[INFO] [stdout]     |
[INFO] [stdout] 644 |     PromotionCapture {
[INFO] [stdout]     |     ---------------- fields in this variant
[INFO] [stdout] 645 |         from: u8,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 646 |         to: u8,
[INFO] [stdout]     |         ^^
[INFO] [stdout] 647 |         promotion_piece: Piece,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 648 |         captured_piece: Piece,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^
[INFO] [stdout] 649 |         enemy_can_castle: CanCastle,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 650 |         en_passant_index: Option<u8>,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `from`, `to`, and `en_passant_index` are never read
[INFO] [stdout]    --> src/board.rs:652:18
[INFO] [stdout]     |
[INFO] [stdout] 652 |     PawnDouble { from: u8, to: u8, en_passant_index: Option<u8>, }
[INFO] [stdout]     |     ----------   ^^^^      ^^      ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     fields in this variant
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `reset_with` is never used
[INFO] [stdout]   --> src/game.rs:55:8
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl Game {
[INFO] [stdout]    | --------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 55 |     fn reset_with(&mut self, other: &Self) {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/eval.rs:211:14
[INFO] [stdout]     |
[INFO] [stdout] 211 |     unsafe { &BLACK_PIECE_SQUARE_TABLES }
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 211 |     unsafe { &raw const BLACK_PIECE_SQUARE_TABLES }
[INFO] [stdout]     |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/eval.rs:215:33
[INFO] [stdout]     |
[INFO] [stdout] 215 |     reverse_piece_square_tables(&mut BLACK_PIECE_SQUARE_TABLES)
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 215 |     reverse_piece_square_tables(&raw mut BLACK_PIECE_SQUARE_TABLES)
[INFO] [stdout]     |                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/moves.rs:62:16
[INFO] [stdout]    |
[INFO] [stdout] 62 |     king_moves(&mut KING_MOVES);
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 62 |     king_moves(&raw mut KING_MOVES);
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/moves.rs:78:18
[INFO] [stdout]    |
[INFO] [stdout] 78 |     knight_moves(&mut KNIGHT_MOVES);
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 78 |     knight_moves(&raw mut KNIGHT_MOVES);
[INFO] [stdout]    |                   +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing
[INFO] [stdout]    --> src/moves.rs:442:57
[INFO] [stdout]     |
[INFO] [stdout] 442 |     pub fn fill<'a>(&'a mut self, board: &mut Board) -> &[Move] {
[INFO] [stdout]     |                      -- the lifetime is named here      ^^^^^^^ the same lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]     = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: consistently use `'a`
[INFO] [stdout]     |
[INFO] [stdout] 442 |     pub fn fill<'a>(&'a mut self, board: &mut Board) -> &'a [Move] {
[INFO] [stdout]     |                                                          ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `baby_chess_engine` (bin "baby_chess_engine") due to 4 previous errors; 9 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: fields `piece`, `from`, `to`, `we_can_castle`, and `en_passant_index` are never read
[INFO] [stdout]    --> src/board.rs:626:9
[INFO] [stdout]     |
[INFO] [stdout] 625 |     NonCapture {
[INFO] [stdout]     |     ---------- fields in this variant
[INFO] [stdout] 626 |         piece: Piece,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout] 627 |         from: u8,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 628 |         to: u8,
[INFO] [stdout]     |         ^^
[INFO] [stdout] 629 |         we_can_castle: CanCastle,
[INFO] [stdout]     |         ^^^^^^^^^^^^^
[INFO] [stdout] 630 |         en_passant_index: Option<u8>,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]    --> src/board.rs:633:9
[INFO] [stdout]     |
[INFO] [stdout] 632 |     Capture {
[INFO] [stdout]     |     ------- fields in this variant
[INFO] [stdout] 633 |         piece: Piece,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout] 634 |         from: u8,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 635 |         to: u8,
[INFO] [stdout]     |         ^^
[INFO] [stdout] 636 |         captured_piece: Piece,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^
[INFO] [stdout] 637 |         we_can_castle: CanCastle,
[INFO] [stdout]     |         ^^^^^^^^^^^^^
[INFO] [stdout] 638 |         enemy_can_castle: CanCastle,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 639 |         en_passant_index: Option<u8>,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `from`, `to`, and `en_passant_index` are never read
[INFO] [stdout]    --> src/board.rs:641:17
[INFO] [stdout]     |
[INFO] [stdout] 641 |     EnPassant { from: u8, to: u8, en_passant_index: Option<u8>, },
[INFO] [stdout]     |     ---------   ^^^^      ^^      ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     fields in this variant
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `from`, `to`, `we_can_castle`, and `en_passant_index` are never read
[INFO] [stdout]    --> src/board.rs:642:14
[INFO] [stdout]     |
[INFO] [stdout] 642 |     Castle { from: u8, to: u8, we_can_castle: CanCastle, en_passant_index: Option<u8>, },
[INFO] [stdout]     |     ------   ^^^^      ^^      ^^^^^^^^^^^^^             ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     fields in this variant
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `from`, `to`, `promotion_piece`, and `en_passant_index` are never read
[INFO] [stdout]    --> src/board.rs:643:17
[INFO] [stdout]     |
[INFO] [stdout] 643 |     Promotion { from: u8, to: u8, promotion_piece: Piece, en_passant_index: Option<u8>, },
[INFO] [stdout]     |     ---------   ^^^^      ^^      ^^^^^^^^^^^^^^^         ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     fields in this variant
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `from`, `to`, `promotion_piece`, `captured_piece`, `enemy_can_castle`, and `en_passant_index` are never read
[INFO] [stdout]    --> src/board.rs:645:9
[INFO] [stdout]     |
[INFO] [stdout] 644 |     PromotionCapture {
[INFO] [stdout]     |     ---------------- fields in this variant
[INFO] [stdout] 645 |         from: u8,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 646 |         to: u8,
[INFO] [stdout]     |         ^^
[INFO] [stdout] 647 |         promotion_piece: Piece,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 648 |         captured_piece: Piece,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^
[INFO] [stdout] 649 |         enemy_can_castle: CanCastle,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 650 |         en_passant_index: Option<u8>,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `from`, `to`, and `en_passant_index` are never read
[INFO] [stdout]    --> src/board.rs:652:18
[INFO] [stdout]     |
[INFO] [stdout] 652 |     PawnDouble { from: u8, to: u8, en_passant_index: Option<u8>, }
[INFO] [stdout]     |     ----------   ^^^^      ^^      ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     fields in this variant
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/eval.rs:211:14
[INFO] [stdout]     |
[INFO] [stdout] 211 |     unsafe { &BLACK_PIECE_SQUARE_TABLES }
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 211 |     unsafe { &raw const BLACK_PIECE_SQUARE_TABLES }
[INFO] [stdout]     |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/eval.rs:215:33
[INFO] [stdout]     |
[INFO] [stdout] 215 |     reverse_piece_square_tables(&mut BLACK_PIECE_SQUARE_TABLES)
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 215 |     reverse_piece_square_tables(&raw mut BLACK_PIECE_SQUARE_TABLES)
[INFO] [stdout]     |                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/moves.rs:62:16
[INFO] [stdout]    |
[INFO] [stdout] 62 |     king_moves(&mut KING_MOVES);
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 62 |     king_moves(&raw mut KING_MOVES);
[INFO] [stdout]    |                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/moves.rs:78:18
[INFO] [stdout]    |
[INFO] [stdout] 78 |     knight_moves(&mut KNIGHT_MOVES);
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw mut` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 78 |     knight_moves(&raw mut KNIGHT_MOVES);
[INFO] [stdout]    |                   +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing
[INFO] [stdout]    --> src/moves.rs:442:57
[INFO] [stdout]     |
[INFO] [stdout] 442 |     pub fn fill<'a>(&'a mut self, board: &mut Board) -> &[Move] {
[INFO] [stdout]     |                      -- the lifetime is named here      ^^^^^^^ the same lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]     = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: consistently use `'a`
[INFO] [stdout]     |
[INFO] [stdout] 442 |     pub fn fill<'a>(&'a mut self, board: &mut Board) -> &'a [Move] {
[INFO] [stdout]     |                                                          ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `baby_chess_engine` (bin "baby_chess_engine" test) due to 4 previous errors; 8 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "53e91f74348b60716650bcf7c91adec92e6af915801e10d7e015b00bf944bbe5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "53e91f74348b60716650bcf7c91adec92e6af915801e10d7e015b00bf944bbe5", kill_on_drop: false }`
[INFO] [stdout] 53e91f74348b60716650bcf7c91adec92e6af915801e10d7e015b00bf944bbe5
